跳到主要内容

创建您的第一个 Recipe

安装好相机并连接到 OV20i 软件后,按照以下步骤创建您的第一个 Recipe。

创建新 Recipe

步骤 1:进入 Recipe 创建

在 All Recipes 页面,点击右上角的 + New Recipe

image.png

步骤 2:配置 Recipe 详情

将弹出 Add A New Recipe 窗口。

必填字段:

  • Name - 输入 Recipe 的名称(必填)。该名称将显示在 All Recipes 页面。
  • Recipe Type - 从下拉菜单中选择 Recipe 类型(必填)。
提示

如需帮助选择合适的 Recipe 类型,请参见 Classifier vs Segmenter

可选字段:

  • Description - 输入 Recipe 描述(可选)。该描述将显示在 All Recipes 页面和 Recipe Editor 页面的顶部。

image.png

步骤 3:完成创建

点击 OK 创建新的 Recipe。

新 Recipe 将以非激活状态显示在 All Recipes 页面。

打开 Recipe Editor

要编辑 Recipe,需先激活该 Recipe。

激活步骤:

  1. 在 Recipe 右侧选择 Actions > Activate
  2. 点击 Activate 确认

image.png

  1. 点击 Edit 打开 Recipe Editor
  2. 点击 Open Editor 确认

image.png

成像设置

本节将指导您设置相机,以获得被检物体的清晰图像。

备注

成像设置对 Classification 和 Segmentation Recipe 均相同。

配置步骤:

  1. 点击页面左下角的 Configure Imaging

image.png

  1. 将被检物体置于相机视野内,使用实时预览确认物体在画面中

image.png

  1. 根据需要调整右侧的相机设置,以获得清晰的物体图像

  2. 点击页面右下角的 Save Imaging Settings

备注

有关成像设置选项的更多信息,请参见 Imaging Setup Fundamentals

模板图像与对齐

本节将指导您捕获模板图像,并可选择配置对齐器。

备注

模板图像与对齐对 Classification 和 Segmentation Recipe 均相同。

步骤 1:进入模板设置

在成像设置页面,使用面包屑菜单选择 Template Image and Alignment。或者在 Recipe Editor 中选择 Template Image and Alignment。

image.png

步骤 2:捕获模板图像

选择 Capture Template Image

备注

捕获模板图像后,左侧预览窗格将显示模板图像,而非相机视野的实时预览。若要查看相机实时预览,请向下滚动页面并选择 Live Preview Mode。若需重新拍摄模板图像,请确保未启用实时预览,然后点击 Re-Capture Template Image。

步骤 3:配置对齐器(可选)

如果需要对齐:

  1. 在 Template Regions 下选择 + Rectangle+ Circle(根据被检物体形状选择)
  2. 重新定位/调整区域大小以适应被检物体
  3. 在 Settings 中将 Rotation Range 设置为 20 度,允许对齐器在物体相对于模板图像旋转最多 20 度时定位
  4. 如有需要,调整 Sensitivity 和 Confidence Threshold
  5. 点击 Save

如果不需要对齐: 若您的应用不需要对齐器,切换 Skip Aligner 选项,点击页面底部的 Save

备注

有关模板图像与对齐页面的更多信息,请参见 Template Image & Alignment Theory

image.png

检查设置

本节将指导您配置相机的检查内容(Inspection Types)及检查位置(Inspection Regions)。

备注

检查设置对 Classification 和 Segmentation Recipe 均相同。

步骤 1:进入检查设置

在模板图像与对齐页面,使用面包屑菜单选择 Inspection Setup。或者在 Recipe Editor 中选择 Inspection Setup。

备注

左侧预览窗格显示的是模板图像,而非相机视野的实时预览。若要查看相机实时预览,请向下滚动页面并选择 Live Preview Mode。添加或编辑 Inspection Types 和 Inspection Regions 时,请确保未启用实时预览。

image.png

步骤 2:配置检查类型

在 Inspection Types 下,默认显示 “Inspection Type 1”。点击 Edit 重命名。

备注
  • Inspection Types 指执行的不同检查类型(类别),允许您将视觉上相似的 Inspection Regions(ROI)分组
  • Inspection Regions (ROI) 指应执行检查的区域

image.png

步骤 3:添加检查区域

  1. 在 Inspection Regions 下点击 + Add Inspection Region
  2. 重新定位并调整屏幕上的黄色框,以适应您想检查的物体特定区域
备注

默认情况下,Inspection Region 名称为 “New ROI”。点击 Edit 可更改名称。

image.png

步骤 4:完成设置

  1. 根据需要为该 Recipe 添加多个 Inspection Types 和 Inspection Regions
  2. 点击页面底部的 Save
备注

有关检查设置页面的更多信息,请参见 Inspection Setup & ROI Types

image.png

后续步骤

如果您选择了 Classification Recipe 类型: 继续参见 Train a Classifier

如果您选择了 Segmentation Recipe 类型: 继续参见 Using the Segmenter

🔗 另请参阅